<template>
    <span class="title">
        <i v-if="hideLogo" class="icon"></i>
        <slot name="title"></slot>
    </span>
</template>
<script>
export default {
  props: {
    hideLogo: {
      type: Boolean,
      default: () => {
        return true;
      }
    }
  }
};
</script>

<style lang="scss" scoped>
@import "../../../styles/base/_parameters";

@mixin title($size: 22px, $color: #55eea8) {
  color: $color;
  font-size: $size;
}

.title {
  position: relative;
  @include title;
  .icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("../../../../static/img/flh/data_ico1.png") left top
      no-repeat;
    background-size: 100% 100%;
  }
}
</style>
